Not sure where space for `out_data` is allocated, but need to make sure that all these additional variables have space allocated.