Fixed bug -- typo in variable.
Fixed case sensitivity typo.
Removed unused code.