added processing of migration request in a thread.