Streamline the logic of 'push' for queues