Implementation of two way binding.