Add reverse functionality for tb->data and data->tb