Added key-file generationg