Fix all of the grammar flaws in the following sentence.
With the depletion of natural resources, funds have to be diverted into researching a cheaper alternative to gasoline as a fuel.
With the depletion of natural resources, funds have to be diverted into researching a cheaper alternative to gasoline.