Added initialisation from main.tea file