Update write to only need 2 arguments for simplicity