Water the pile so that it is damp, but does not remain soggy. The compost will be within the right moisture range if a few drops of water can be squeezed from a handful of material. If no water can be squeezed out, the material is too dry. If water gushes from your hand, it is too wet. The smaller the size of organic wastes, the faster the compost will be ready for use.
Smaller particles have much more surface area that can be attacked by microbes.
A shredder can be used before putting material in the pile, and is essential if brush or sticks are to be composted. A low cost method of reducing the size of fallen tree leaves is to mow the lawn before raking or run the lawn mower over leaf piles after raking. Raked piles should be checked to insure that they do not contain sticks or rocks which could cause injury during operation of the mower. If the mower has an appropriate bag attachment, the shredded leaves can be collected directly. In addition to speeding up the composting process, shredding will initially reduce the volume of the compost pile.