Made infix work with arbitraly large logical expressions