Added newline characters to ensure proper append