[IMP]Improved the base module with new closure style.