Added missing semicolons to some lines of code