Changed to use :append: rather than :lines: for close brace