Added comments as traced through code