Remote desktop functionality

Changed the main program so that I can run the program from the nbi
servers.