Changing deprecated attach() to load().