Added missing function getTypes