Re-order functions.