Addes some logging