An incompetent person may be defined as one whose mind is unsound, deranged, or impaired in function, such as a slow I.Q., deterioration, illness or psychosis. Judicial proceedings for the determination of the competency of a person are held, and require that the person to be evaluated have adequate notice of the proceedings. The alleged incompetent must be present or represented by counsel at these proceedings. The court may appoint physicians and other qualified persons to examine, investigate, or represent the alleged incompetent, to assist the court in deciding whether a guardianship is necessary. An incompetency hearing may be held for reasons of protecting the person from harming themselves or others, for appointing someone to manage their affairs, or for commitment to institutional care.