Function changes - due date, legacy_id, and export