Added debugging output for extraction tool.