Adding server code to record changes in stage