Changed variables for easier understanding