Will write to file CAREFULL: will currently break file