Tested migration, fixed bugs.