Added log lines for debugging.