Debug function for ComputeFeatures