Improved documentation for variable times and added tests to ensure its correctness.