Fixes log times and re-adds key-file generation.