Adding category and search function.