Now the generalized versions also support weights