Remove co and thunkify. rewrite done function to be sequential geenrators.