Added trace logging to bundle loading.