Added "result" management for migrate:: function