Added possibility to set different exit codes