Carbohydrate biochemistry

In a Fischer projection of a monosaccharide, what determines whether it belongs to the D or L series?