Removed debug code from main