Version 3

Calculation of package_name and service_name need patricular attention.
That's correct, that's why it's in the TODO section.