Improving offline detection