Added some basic logging