Add class and function type checking.