added time remaning display, tweaked algorithms, tweaked cutoff time for demonstration.