Improved message dequeueing