Working 'ot history' command