Added migrate functionality.