Added some code for cycles, including generating all cycles on init() in 1/3 seconds on my machine.