Added missing semicolons and proper indentation.