Changed variable names to clarify program