Adding reinit_data functionality