Cleaned up some code.
Added a function lookup for looking for possible classes that could have overridden or declared that function.
Small glitch with CachedModel, function lookup only works the first time.