Cycle Count

Added cycle count counter and currently breaking after 100 cycles.