Added the join function