Default to 1 if the vars aren't set for some reason.