Used folding to sort configuration into categories