Adding more debug output to properly see what happens in the top and the core.