Implement Relation API