Added debug messages to the server for visualization of the sharing
process.