Working on exit status bug