Adapated share observer to pattern