Changed to use form variables from a call to variable_get