Update Offline function