Added essential logging