Added join function.