Fixed regular mode. Removed debug messages.