Figured out how to control number of cycles
Added variable to control number of cycles