Changed definition of main type;