Set the barrier and warn if it could not be set automatically.