Adding some more logic to lines between {}