Use macros in queue_kernel functions