Hooked up to search results. Fixes #4. Fixes #5