Added some comments to functions I've had to trace twice