Improved loading of script data.