Change keygen to match preloaded data