Improve canonicalise task output