Added support for geenrated file to run on node too.