Added support for generating joints rather than bones.