Added pending commands feature