Moved seam finding to seperate class.