No need to output -1 since error codes are straightened out.