Added command to migrate legacy data