Added weights to protobuf data layer.