Updated setOption function to auto detect
Added client auto updates support for different client versions