changed method for getting messages from the queue.

I changed the method for pulling messages from the queue to the consumer-method, which delivers very good performance. 
I hope this helps some people.

Cheers
Johannes