Further refined if/else tree.