Added routines to account for modifiers with durations.
Added routines to account for modifiers with durations.