Added function queueProcessor.
Updated haddock comments.