Added constructor using all fields.