Synchronous writing :(