Changed getDirectTypes to getTypes