Implemented auto version selection