Added more output information for debugging.