Adding in the write stuff