Added function queues