Added shape specification to WeightActs.