Fix off by one error and don't exit if batteries aren't found. They may be connected later