Add support for specifying wait-lists in command_queue