Script for formatting output