Added getTypes function