The purpose of the fermentation lock is to prevent oxygen and spoilage organisms from entering the wine while at the same time permitting the escape of carbon dioxide gas. The lock should be half filled with water or a sulphite solution and refitted to the carboy after each operation.