Adding a convenience constructor.