Use getIntrinsicID instead of looking up intrinsic prototypes. Also