Added the possibility for debug hooks during closure call
Renamed