Basic demo working version of nsc, code is a mess