Add support for custom keyfiles.