Over the past few years, affordability has been the biggest challenge for homebuyers.