Updated curly braces to my coding style.