Prepare for device