Added error checking for commands