Implemented cycle search functionality