Rewrite from bottom to top; UUID support.