Working version of the controller, we need now to figure out how to create the queues