Creation of defaults helper function.