Enhanced dump function