Added searching through multiple tables and sorting results.