Ensure variables are properly set.