Initialize all object fields.