Added some logging to the operations