Changed status check to 0/1