Removed debug output and bugs that caused warnings