Updated variable names to better reflect the code.