Testing an idea to reduce the number of branches