Added comments for the merge optimisation functions