- Removed debug code
- Changed var to const.