Split off kug_iterator to it's own module.