Adding function set_options to Plugin class