Passing method to log searches