Handle relations through relation ids