Basic index response completed, needs refactoring.