Updated code to Gravity's v2.1 Updater API