Tweaked control script to prevent hanging on gear creation!