Introduce queue code