This is code that used to be in the constructor.