Accord on migration comes at critical time