Added searching by category.
Made categories persist.