Included battery code in an if statement macro