Extracted queue to its own package.