Better return codes for errors.