Add version detect