Add update preferences, write some code to make Sparkle work.