Dont depend on write in low-level code.