Complete rewrite of the FMD code.

No match.