Improved variable names.
Added comments.