Massage data a bit to make it more amenable to analysis before returning to caller.