Code style: braces for functions should be on the next line. Same for all the rest of the functions in this pull request.