Wrapped in check for preference variable.