Don't write extra elements with value of 0