added a method for adding commands to the queue in the dispatcherWrapper.