Changes to write, bug with dev somewhere