Working version with attributes saved at points.