Changed join method to use the insert method instead of doing itself allocation.