[IMP]Improved Code.