Refactored speech recognition code.