Added option for limiting max number of cycles