Introduced Input/Output queue factories for easy extensibility.