Generating better keys