Debugged function issue.