Implemented the Index API + integration tests