[IMP]Improved code.