Added more code for creating and modifying the Queue