Added template methods, so that multiple indexes can be implemented if needed