Minor script fixes.