Tweaked script.