Refactored out a Search class to help manage the searches. Better testing on Loglings.