Added sic support for file writing