Optimized the service list processing, thanks to @abellonch