Adding a get function to get a single message off the queue