Function registration now works. if-function works. Fixed call matching.