Perhaps you might want to add a sequential switch and logic module like Plog or Kinks?
EDITED Nov 13th 2020, 23:00