Added Logging

Added logging statements