Write now returns object index
Formatting