added logging thing.