Add public constructor.