Implement index function for module.