Use result|success instead of result.rc == 0