Changed variable names to better match purpose.