Changed constructor.