Added variables and alert