Added logging to results and endpoints