Added option to test for the specified time