Adds missing semicolons.
Removes unused vars.