The attribute 'loaded' is now a property. This makes the code simpler.