Here we should remain only the code that sets the observer. The code that gets the current value should be put in the refresh method under the proper function