#1 added ReferenceNumber support. supports string or array format. thanks @optikalefx