Move matching to program, keep the library simple.

Signed-off-by: Kurt Van Dijck <github@vandijck-laurijssen.be>