Updated var names to be easier to understand.