Getting your traces into the right format