Removed some debug code. Added function for continual updating for data binding.