Implement braces and folding