Adding join functionality.