Added user defined weights