Standard deviation script
Added time in state helper script
Fixes data on old unexited logs
Fixed bug where a change in service class would lead to an un-exited state log record for that card