Added KSRegistry and split MAM into mam and mamsrs