Add framework for calculating indexes.