Initialize variable device, fixes #8