Changed relations to pointers