The SearchController would probably help, wouldn't it.