Fix log messages
Create debug method to dump stack info