This is preventing a variable not set notice. I'll fix it to take the variable from $form_state['values'].