Basic join logic created with a session var, see todo for next steps