Implemented migration procedure.