Added some black magic for a generate key button