Made total time configurable