Made checkType public