Ensure that the regenerator is only called once in all cases