Added methods to manually dequeue messages