Rearrange functions in an order that makes more sense.