Added edm footer, added args for batch sent.