Adding logging because I don't know what is happening.