- Added code to take care of the situation where while processing the first