Added error message to pauseOnError email notification
Made all functions uppercase