Added a priority setting so that we can control the order in which animations
are applied.