Removed do notation from all dispatch branches.
Using case instead of if then else in the migrate dispatch function.
Retrieved an old version of Sort Logs and its unit tests and merging it with the new improved version with input-output mapping.