Added logging lines