RDWD initial commit of functions