Basic search function working