Updated formatted output and added balanced delimiters