Converted plugin_search from if statements to dict.