Added method for loading assets.