Tweaks to layout scripts.