Scientists tested a new gas-switching method that could make deep-sea diving safer by preventing decompression sickness.