Main class now uses the most matching version