Update the commands to return 1 on success, 0 on failure.