MOdifying code to synchronize from local to remote server.