Added logging

Added logging