Implemented local search (again)