Extracted first iteration from stage loop, this avoids multiplication by trivial factors.
Renamed repository for consistency with other projects.