Modified auto update check code.