Additions for returning dd when parameter selected