Revised variables and comments to improve clarity.
Revised variables and commentsto provide clarity.