Adding support for stack_get_data_size