Added logging. Tutorial is broken