Added overly-complicated Extensions class.