First Commit: working key generator very slow