Use enum value instead hardcode in system call funtcions