Added settings migration function