Moved implementation of search down---somehow AndroidStudio didn't commit everything.