Changes pack("W") to pack("C")

Parameterizes partition type