Cleaned up Updater.onAttached.