Updated keygen.c