Write names on newlines rather than using JSON to allow easy appending