Better formatting function
Write to nextar device