Purify a majority of functions