Added log messages for debug