Added offline mode option.