Included ref no in document table. Do Logging of ref no next.