Proper initialization of device