Implemented migration of Main Mode task