Dirty commit : Kinda working, sync still not implemented, lot of dead code, logging...