Add options to block document and use OptionsResolver