Cleaned up interface for index.