Just to clarify, for those who might have come in late (which might or might not include you), the idea is not to replace FIVE parts to become compliant, the idea is that you may have NO MORE THAN TEN FOREIGN PARTS off the list below if you want to add a flash hider and/or bayonet lug. No flash, no lug (or other "evil" parts), no problem, have all the foreign parts you want. Note that using a USGI mag gets three foreign parts off your list, BUT prevents you from legally using the wonderful, cheap Type 57 mags in your gun.
(1) Frames, receivers, receiver castings, forgings or stampings
(2) Barrels
(3) Barrel extensions
(4) Mounting blocks (trunions)
(5) Muzzle attachments
(6) Bolts
(7) Bolt carriers
(8 ) Operating rods
(9) Gas pistons
(10) Trigger housings
(11) Triggers
(12) Hammers
(13) Sears
(14) Disconnectors
(15) Buttstocks
(16) Pistol grips
(17) Forearms, handguards
(18 ) Magazine bodies
(19) Followers
(20) Floorplates
Note that not all these parts apply to M14, regardless, you can have no more than 10 foreign from the list in order to legally add evil features. (Also check your state law for evil feature compliance.)