Making sure the variables are correct.