Add factory for Queue.