Implemented autotype.