Added initialisation function