Working on Thread freezing to integrate Scripting with GUI