Wrote code for updating from remote