Mesh not following bones correctly

Hi! I have a problem with weight painting. This is what happens, the mesh follows the bones just partly. I have really tried to paint the mesh thoroughly from all angles. It looks like it’s somehow attached to something else and being pulled apart. Thank you! / Alex