Logging

Adding some more logging calls.