Added cycle code
Fixed cycle code