Added type function