Leaving logging in here (testing still needed).