Switching to getTypes for internal type data retrieval for performance and error prevention.