Adding a action between two times, but relying on other variables.