Fixed error logs, removed debug