Borrowed the quickfix executor code.