Added offline mode.