Add debug for calculator