Implemented path search