Added selfcheck for other types.
Initial version of function check.