Do not forget to set the value of sharedRange.