code would hit the interface multiple times. Now, all media and media options are gathered and processed at once, hitting the interface only once (except to grab the currently selected media exactly once; there is no way to avoid that).