Implemented checking of built in commands and quit