Variables initialisation and data preparation