Fully implement executing commands from history.