New script for keygen