Added global attr to load() function