Fixed scripts to work with new GUI