Loading and preparing the data