Clean up before running, move deque() ahead of dodeque()