Setup

Contains functions used in the setup of the device: