Make sure variables are defined