Add relation lookup at the application level.