Added join code