Working edition (some issues with the skeleton extraction)