Some debugging and adding calculation behind the scenes