Added support for delayed loading of script files