For your detection at the end to check if we were running or paused:

```
if(object.timestamps.length % 2){
    // Paused
} else {
    // Resumed
}
```