Adopted millisecond wait