Fixes c, d, h and other functions