Store timestamp along with commands in history