New constructor that takes a "compat" argument indicating whether to