Adds working search and index functionality