Setting upgrade routines.