Added some loggin