Add dynamic flag to <resource>