Initialisation of main