SmartARS main code module