Changed method of storing type names and finding child classes