Consolidated both SDMM methods into one