Added changable search distance to api