Separate module and indices generation.