Try new way to detect value classes