Reproduces I. Baldry's CMD method