Code doesn't run currently, but search function is wired to the data model. Debugging.