Add get_data_seconds method to make scripts easier to understand. Not fully tested