Updated service constructor.