Added some comment about the method
Moved the setshared to the "right" place