Got everything working. Since | is ordered, it needs to try comp before term