Add interactive mod to calc function.