Added implementation to CodeTree. (Note that the parser and MLC must be updated to make use of the functionality).