Reordered functions into similar groups.