Improved the update check