Add global datas and implement first functions