Improve the listener by add debug message