Use loop tokens instead of queues and flags and things