Testing. Added cycling checking.