removed mDevice member and made singleton accessor.