Refactory to create a variable only when required for performance
reasons.
Add comments.