Replaced Thread.sleep value with the proper constant