New functions defined, including battery info