Adding log messages for debug