Added some working logging statements