Added enc detection