Fixing up loading scripts.