Completely untested dawg implementation