Added function signature checking and some other stuff