Add debug message to scripts