Changed constructors to meet requirement.