Changed some variable names to be more clear.