Add support for using a keyfile