Add logging to nextres.log.