Replaced ncalc dll with ncalc source code