Fixed extra new lines in output