Tweaked variables and added explanation