Added more debug messages to stdout