Introduces online/offline detection and implements fallback for CV depending on that