Code cleanup and improvement.
Based on the integer slider, this can be used to interactively control time.