Updated registerForUpdates and deregisterForUpdates for versions 2.2 through to 3.0