Control time library.

You are right. The robtillaart's function is enough. Although I will need to rewrite the function to use in different contexts.