Latest updated code till 18th Dec 2013