Updated offline detect