Added logging. Oeps2.