Seconds keys generator. Bug fixing.