Added auto version detection