Made a better key generator