Explicit checking of return code