Added basic exit code support