Added missing semicolons and what not.