Added option to block for function_queue operations.