Lots of changes everwhere, stock and heap done along with chained hash