Changed names of variables to be more descriptive