Changed entity constructor.