Added function to clear/reset index.