Replaced multiple constructors with one generic constructor.