Made slight modifications to ESClient and SearchManager that were causing errors