Add cofactor option to support signatures