Made changes to how properties are attended to, so changing state properties are captured