Change offline to a mode