THIRD AMENDED AND RESTATED RELATED AGREEMENT