Added migration functionality.