Added exactTime parameter for more precise timing than is possible with
the "wait" parameter.