Final working version & no gui