Script formatting