Bug fixing: shared_changed function was missing