Wrote execution code for simple commands