Script review and fixes.