Improve doc script.