Corrected constructor.