Compose a queue of functions