Added smoothie funciton
add times between captures
Capture when the threshold is rebased
Fixed the server to wirk in the heroku