Add initial version detection (not tested much yet)