This might look a little better

Not sure if it is doing exactly the write thing, though