This should be done in the constructor.