I am not sure if we need another set of ts_global_end and start variables. Can we reuse ts_start and ts_end instead? 

Do you also want to implement getting ts_start and ts_end as CLI args?