Made changes to load script