Removed unnecessary loop and changed AssetsManager method.