Check copyright and change debugging output to logging.debug.