Added types' checking for parameters' functions.