Added semicolons where appropriate