Add ids for linking.