Added a constructor.