Modularized matchmaker code