added new basic 'loop' support.