Added logging to redirector.