Should probably be == instead of 0.