Added semicolons and removed unused variable.