Applied patch from Octavian Naicu for recording over low bandwidth connections