Add configurable loop