Start change to dedimania call to handle Laps, mode but can't finish,
Removed debug lines & cleaned a bit the code.