Adding first attempt at SD generation