def instantiate(self, parallel_envs, seed=0, preset='default') -> VecEnv:
        """ Create vectorized environments """
        envs = DummyVecEnv([self._creation_function(i, seed, preset) for i in range(parallel_envs)])

        if self.frame_history is not None:
            envs = VecFrameStack(envs, self.frame_history)

        return envs