Updated service with $digest statement