Added method to write zeros