Minimal tidying