Initial implementation of automatic detection of function definitions
Removed a call to an internal debug function