Added exit code flag