Update Offline code