Changed join to function.