Changed the constructor.