Updated to fix deprecation warnings with Asset class.