Add max version detection