Better system() error handling.
Unused variables.