Added prolog function
Change output method to plain text