Modified the QueueMessages classes to fit our needs best.