Change if/else to on/do/end in company route.