Add offlineMode parameter.