Debug of the loading function