Added synchronous file writing
Similarly added async file writing