Maybe have only one out.Write call?