Further improvements to time selection example.