Divided it into Modules. Support Calculation Works Perfect and confidence calculation requires fixing.