Refactored api to better handle the response.
Unit search and render attempt