Switched to traditional if/else syntax.