Fix timer to work with JSON file.