Use seperate HashMap for checking if commands have been run.