Refactored loader, and created new function 'removeAssets'