Added some checks before installing NX