Implemented index and search