Uniformized Migration Tasks. Corrected minor bugs. Adapted to latest CMS changes.