Architecture detection