Use setOptions for global and lang (#43)