Added basic command history logging.