Tweaking various scripts