Get rid of switch/case due to the issue from ADT14+, use if/else instead.