Cordless and corded power tools