Scripting stuff - error messages, string builder for efficiency, line reader