Add migrate function:w