Precheck code

Prechecked code from Audacity.