Removed extraneous code from queue