Adding first and last dynamic event priorities