Added curly braces to the methods.