Added a fix for when a record is not found in the table storage and a lot of logging