Adding explicit braces to resolve compiler warnings.