Added a new constructor.