Adding rudimentary logging