Run spatial-update in response to resource changes only

Perhaps indent above statement parts and capitalise (or not) reserved words consistently to make it more readable.