Added DD Function

Added a function to dump the data and kill the script.