Addd some logging