Writing FCS file partially working