Move debug message to start of script