Changed variable names to fit in better with the method name