First attempt at processing relations