Improve rendering script.