Added the main functionnality