equity and other incentive compensation expenses. Allocations of expenses not directly attributable to us are based on a services agreement between BGC Partners and Cantor which reflects the utilization of service provided or benefits received by us, such as headcount, square footage and revenue. For the year ended December 31, 2017, we incurred expenses of $14.2 million for these services. For the years ended December 31, 2016, 2015 and 2014, we incurred $18.0 million, $18.5 million and $11.2 million, respectively.
Transactions with Cantor Commercial Real Estate Company, L.P.
We also have a referral agreement in place with CCRE in which brokers are incentivized to refer business to CCRE through a revenue-share arrangement. In connection with this revenue-share agreement, we recognized revenues of $0.1 million and $0.7 million for the year ended December 31, 2017 and 2016, respectively. For the years ended December 31, 2016, 2015 and 2014, we recognized revenues of $0.3 million, $0.0 million and $0.6 million, respectively.
We also have a revenue-share agreement with CCRE in which we pay CCRE for referrals for leasing or other services. We did not make any payments under this agreement to CCRE for the year ended December 31, 2017 and 2016. For the years ended December 31, 2016, 2015 and 2014, we paid $1.6 million, $0.8 million and $0.2 million, respectively.
In addition, we have a loan referral agreement in place with CCRE, in which either party can refer a loan to the other. Revenue from these referrals from CCRE was $3.3 million and $5.3 million for the year ended December 31, 2017 and 2016, respectively, and $7.5 million, $5.0 million and $1.9 million for each of the years ended December 31, 2016, 2015 and 2014, respectively. These referrals fees are net of the broker fees and commissions to CCRE of $0.7 million and $1.0 million for the year ended December 31, 2017 and 2016, respectively, and $1.6 million, $0.8 million and $0.2 million for the years ended December 31, 2016, 2015 and 2014, respectively.
On March 11, 2015, we and CCRE entered into a note receivable/payable that allows for advances to or from CCRE at an interest rate of 1 month LIBOR plus 1.0%. On September 8, 2017, the note receivable/payable was terminated and all outstanding advances due were paid off. As of December 31, 2016, there was $690.0 million of outstanding advances due to CCRE on the note. We recognized interest income of $0.7 million and $0.1 million for the year ended December 31, 2017 and 2016, respectively, and $0.1 million, $0.1 million and $0.0 million for the years ended December 31, 2016, 2015 and 2014, respectively. We recognized interest expense of and $2.5 million and $1.4 million for the year ended December 31, 2017 and 2016, respectively, and $2.2 million, $0.2 million and $0.0 million for the year ended December 31, 2016, 2015 and 2014, respectively.
For the year ended December 31, 2017, we purchased the primary servicing rights for $0.3 billion of loans originated by CCRE for $0.6 million. For the year ended December 31, 2016, we purchased the primary servicing rights for $2.8 billion of loans originated by CCRE for $3.9 million. For the year ended December 31, 2015, we purchased the primary servicing rights of $8.3 billion of loans originated by CCRE for $9.2 million. For the year ended December 31, 2014, we purchased the primary servicing rights of $8.2 billion of loans originated by CCRE for $7.4 million. We also service loans for CCRE on a “fee for service” basis, generally prior to a loan’s sale or securitization, and for which no mortgage servicing right is recognized. We recognized $2.8 million and $2.7 million for the year ended December 31, 2017 and 2016, respectively, and $3.6 million, $2.7 million and $0.4 million for the years ended December 31, 2016, 2015 and 2014, respectively, of servicing revenue from loans purchased from CCRE on a “fee for service” basis.
BP Transaction Agreement and Real Estate LP Limited Partnership Agreement
On September 8, 2017, pursuant to a transaction agreement (which we refer to as the “BP transaction agreement”) with Cantor, CCRE, the general partner of CCRE, Real Estate LP and CF Real Estate Holdings GP, LLC, the general partner of Real Estate LP (which we refer to as the “Real Estate LP general partner”), BGC
203