Added variables within function.