Refactored into one search node class