Fixed some other bugs.
Removed debug settings.