Adding function and l-function definitions.
Working on making a "matching tree".