Make sure these variables are defined before we use them.