Writing your own NSE library