Keep track of index in module