Added cycle finding routing with lambda