Put join message inside function.