Created by: KFilippopolitis
Changelog: Fixed the migration script to properly format the result of the algorithms.