Added new constructor.