It had a high rate of fire and with AP shells was capable of perforating the front armor of the M4A6 (a slightly more heavily armored variant of the M4 medium tank ) at 800 yards , though standard doctrine was to wait until tanks got closer if possible to ensure good shot placement.