Updating when attribute or math property changes