Construction of a muzzle brake or compensator can be as simple as a diagonal cut at the muzzle end of the barrel to direct some of the escaping gas upward. On the AKM assault rifle, the brake also angles slightly to the right to counteract the sideways movement of the rifle under recoil.