Added modulation to calc.py