Changed how type was added