Auto Version Detection

Added Auto Version Detection.