Made changes to reflect the changes in the latest version of iregister