CommandQueue.java - added methods