Debug function
Merge branch 'hotfix/debug'