Calculating some relations.