Add join with function