  We extend the phase space slicing method of Giele, Glover and Kosower for
performing next-to-leading order jet cross section calculations in two
important ways: we show how to include fragmentation functions and how to
include massive particles. These extensions allow the application of this
method to not just jet cross sections but also to cross sections in which a
particular final state particle, including a $D$ or $B$-meson, is tagged.
