Implement Nyanga dofile function