Try separate algorithms or grammers.