Began if-else block for commands