Added millisecond delay