Final fix to post truncate - scan function