Did some more accurate checking of braces