modify history to store time and log simply.