Modifying Observer notify function