Move prototype code from dandelion