Have device name retrieved or generated on running program rather than every time getName is called.