Logging

Added in some logging