Added some basic exit code. Not working yet