Cycle detector working