Added logs functionnality