Auto detect profile type