Added ability to store last command