Changed the model attributes to a properties instead.