Simplified some logic in Feeder.write