Removed debug, prevent negative frequencies