Pulled from github
Added multiselect and multiremove for rules