Added three value constructor.