Refactored vpcs implementation and reworked the weights.