Renamed some internal variables.
Factored out full_cycle_increment code.
Removed unused methods.