Interaction ids sorted out and relevant classes linked