WIP: working on speed calculation.