Function in Ailerpet