Added braces to allow for expanding the ternary operators