Newer techniques use Chemical processing on some of the fractions to make others, in a process called conversion. Chemical processing, for example, can break longer chains into shorter ones. This allows a refinery to turn diesel fuel into gasoline depending on the demand for gasoline. Refineries must treat the fractions to remove impurities.