Moved old_present initialiation outside while loop so lost will work