Many small enhancements for scripts.