Added logging lines.