Changes to functions_migration, functions_sampling.