Added Logging Statements for Debugging