No using options once settings is defined. Move this block up above line 32.