Finally got cycle right