Some preparations to add write support.