BF: Make inputs and outputs from the magic conform in shape.