Improved code.
Mesh attaches