Changed joinAllLayer method public